package cn.gok.entity;

import java.util.Date;

public class Course {
    private Integer courseId;

    private String courseName;

    private String desc;

    private Integer maxPersonNum;

    private Date createTime;

    private Date applyStartTime;

    private Date applyEndTime;

    private String status;

    private Integer teacherId;

    public Course(Integer courseId, String courseName, String desc, Integer maxPersonNum, Date createTime, Date applyStartTime, Date applyEndTime, String status, Integer teacherId) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.desc = desc;
        this.maxPersonNum = maxPersonNum;
        this.createTime = createTime;
        this.applyStartTime = applyStartTime;
        this.applyEndTime = applyEndTime;
        this.status = status;
        this.teacherId = teacherId;
    }

    public Course() {
        super();
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName == null ? null : courseName.trim();
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc == null ? null : desc.trim();
    }

    public Integer getMaxPersonNum() {
        return maxPersonNum;
    }

    public void setMaxPersonNum(Integer maxPersonNum) {
        this.maxPersonNum = maxPersonNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getApplyStartTime() {
        return applyStartTime;
    }

    public void setApplyStartTime(Date applyStartTime) {
        this.applyStartTime = applyStartTime;
    }

    public Date getApplyEndTime() {
        return applyEndTime;
    }

    public void setApplyEndTime(Date applyEndTime) {
        this.applyEndTime = applyEndTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    @Override
    public String toString() {
        return "Course{" +
                "courseId=" + courseId +
                ", courseName='" + courseName + '\'' +
                ", desc='" + desc + '\'' +
                ", maxPersonNum=" + maxPersonNum +
                ", createTime=" + createTime +
                ", applyStartTime=" + applyStartTime +
                ", applyEndTime=" + applyEndTime +
                ", status='" + status + '\'' +
                ", teacherId=" + teacherId +
                '}'+"\n";
    }
}